package com.hjj.java.se.finalDemo;

public class TestFinalString {
    public static void main(String[] args) {
        final FinalString finalString = new FinalString("1");
        finalString.setStr("2");
        System.out.println(finalString.toString());
        final FinalString f1 = new FinalString("1");
        final FinalString f2 = new FinalString("2");
//        f1 = f2;

        final String[] arrays1 = {"1234", "1234"};
        final String[] arrays2 = {"234", "123"};
//        arrays1 = arrays2;
        arrays1[0] = "333";
    }

}
